<?php
use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/mcn',
    'namespace' => 'Frieza\\Modules\\Mcn\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/list', 'McnController@list');
    $router->get('/create/{uid}', 'McnController@create');
    $router->post('/save', 'McnController@save');

    $router->get('/platform', 'McnController@platform_list');
    $router->post('/platform', 'McnController@platformSubmit');
    $router->put('/platform/{id}', 'McnController@platformSubmit');

    $router->get('/brand', 'McnController@brand_list');
    $router->post('/brand', 'McnController@brandSubmit');
    $router->put('/brand/{id}', 'McnController@brandSubmit');

    $router->get('/good', 'McnController@good_list');
    $router->get('/select_goods', 'McnController@select_goods')->name('mcn.select_goods');
    $router->post('/good', 'McnController@goodSubmit');
    $router->put('/good/{id}', 'McnController@goodSubmit');
});